using System;
using System.Drawing;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using NetROS.Tiers.Entities;

namespace NetRosApp.Klijenti.Reports
{
    public partial class NarudzbenicaUpit : NetRosApp.Klijenti.Reports.NarudzbenicaIspis
    {
        public NarudzbenicaUpit()
        {
            InitializeComponent();
        }
        public NarudzbenicaUpit(Dokument dokument)
        {
            InitializeComponent();
            bindingSource1.DataSource = dokument;
         //   if (dokument.IDDokumentTip == 30) xrLabel55.Visible = false;
            //xrDatumMjesto.Text = string.Format("[IDOrganizacijaOdSource.IDMjestoSource.Naziv], {0}", DateTime.Now.ToShortDateString());
            xrDatumMjesto.Text = "[IDOrganizacijaOdSource.IDMjestoSource.Naziv], [Datum!dd.MM.yyyy]";
            //System.Drawing.Imaging.Metafile tmp = new System.Drawing.Imaging.Metafile(@"H:\NetROS\NetRosApp\Slike\Reporti\zaglavlje.wmf");
            //System.Drawing.Imaging.Metafile tmp = new System.Drawing.Imaging.Metafile(Application.StartupPath + "\\zaglavlje.wmf");
            //int visina = tmp.Size.Height;
            //int duzina = tmp.Size.Width;
            //if (visina != 0)
            //{
            //    xrPictureBox1.Height = (int)(((decimal)tmp.Height / (decimal)tmp.Width) * (decimal)625);
            //}

            //xrPictureBox1.Image = tmp;


        }
    }
}

